package com.tsystems.bsipp.dm.persistence.enumeration;

/**
 * Created by vsovinsk on 08.10.2014.
 */
public enum PackageStatusValue {
    CREATED(0),
    LINES_ASSIGNED(1),
    CUSTOMER_INFORMATION_DELIVERED(2),
    PORT_UNLOCKED(3),
    PROCESSED(4),
    CANCELLED(5);

    private static final long serialVersionUID = 2014_06_18_01L;

    private int value;

    private PackageStatusValue(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    /**
     * Used for 118n in UI.
     * The enum key has next definition in property file: ENUM_<EnumClassName>_<EnumValue>
     * E.g. ENUM_NetworkCommunicationType_GPRS
     *
     * @return property key
     */
    public String getPropertyKey() {
        return "ENUM_PackageStatusValue_" + this.name();
    }
}
